home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / kernel / action.def next >
Encoding:
Text File  |  1994-07-19  |  5.0 KB  |  129 lines  |  [TEXT/R*ch]

  1. /* The definitions of all the types of actions in Xconq.
  2.    Copyright (C) 1992, 1993, 1994 Stanley T. Shebs.
  3.  
  4. Xconq is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.  See the file COPYING.  */
  8.  
  9. DEF_ACTION("none", A_NONE, "",
  10.   prep_none_action, do_none_action, check_none_action,
  11.   (Unit *unit, Unit *unit2),
  12.   "The non-action (not used, but maybe a good placeholder)")
  13.  
  14. DEF_ACTION("move", A_MOVE, "xyz",
  15.   prep_move_action, do_move_action, check_move_action,
  16.   (Unit *unit, Unit *unit2, int x, int y, int z),
  17.   "Change position to the given cell and altitude")
  18.  
  19. DEF_ACTION("enter", A_ENTER, "U",
  20.   prep_enter_action, do_enter_action, check_enter_action,
  21.   (Unit *unit, Unit *unit2, Unit *dest),
  22.   "Enter a transport")
  23.  
  24. DEF_ACTION("attack", A_ATTACK, "Un",
  25.   prep_attack_action, do_attack_action, check_attack_action,
  26.   (Unit *unit, Unit *unit2, Unit *defender, int n),
  27.   "Attack a given unit")
  28.  
  29. DEF_ACTION("overrun", A_OVERRUN, "xyzn",
  30.   prep_overrun_action, do_overrun_action, check_overrun_action,
  31.   (Unit *unit, Unit *unit2, int x, int y, int z, int n),
  32.   "Attack everything in a cell and occupy if possible")
  33.  
  34. DEF_ACTION("fire-at", A_FIRE_AT, "Um",
  35.   prep_fire_at_action, do_fire_at_action, check_fire_at_action,
  36.   (Unit *unit, Unit *unit2, Unit *defender, int m),
  37.   "Throw a given material at a given unit")
  38.  
  39. DEF_ACTION("fire-into", A_FIRE_INTO, "xyzm",
  40.   prep_fire_into_action, do_fire_into_action, check_fire_into_action,
  41.   (Unit *unit, Unit *unit2, int x, int y, int z, int m),
  42.   "Throw a given material at a given cell")
  43.  
  44. DEF_ACTION("capture", A_CAPTURE, "U",
  45.   prep_capture_action, do_capture_action, check_capture_action,
  46.   (Unit *unit, Unit *unit2, Unit *defender),
  47.   "Take a unit prisoner")
  48.  
  49. DEF_ACTION("detonate", A_DETONATE, "xyz",
  50.   prep_detonate_action, do_detonate_action, check_detonate_action,
  51.   (Unit *unit, Unit *unit2, int x, int y, int z),
  52.   "Damage or destroy self in a violent fashion")
  53.  
  54. DEF_ACTION("produce", A_PRODUCE, "mn",
  55.   prep_produce_action, do_produce_action, check_produce_action,
  56.   (Unit *unit, Unit *unit2, int m, int n),
  57.   "Produce a quantity of a material")
  58.  
  59. DEF_ACTION("transfer", A_TRANSFER, "mnU",
  60.   prep_transfer_action, do_transfer_action, check_transfer_action,
  61.   (Unit *unit, Unit *unit2, int m, int n, Unit *unit3),
  62.   "Transfer a quantity of a material between two units")
  63.  
  64. DEF_ACTION("research", A_RESEARCH, "u",
  65.   prep_research_action, do_research_action, check_research_action,
  66.   (Unit *unit, Unit *unit2, int u3),
  67.   "Study how to build the given type")
  68.  
  69. DEF_ACTION("toolup", A_TOOL_UP, "u",
  70.   prep_toolup_action, do_toolup_action, check_toolup_action,
  71.   (Unit *unit, Unit *unit2, int u3),
  72.   "Prepare tools to build the given type")
  73.  
  74. DEF_ACTION("create-in", A_CREATE_IN, "uU",
  75.   prep_create_in_action, do_create_in_action, check_create_in_action,
  76.   (Unit *unit, Unit *unit2, int u3, Unit *dest),
  77.   "Start construction of a unit inside (or outside?) another unit")
  78.  
  79. DEF_ACTION("create-at", A_CREATE_AT, "uxyz",
  80.   prep_create_at_action, do_create_at_action, check_create_at_action,
  81.   (Unit *unit, Unit *unit2, int u3, int x, int y, int z),
  82.   "Start construction of a unit at a given location")
  83.  
  84. DEF_ACTION("build", A_BUILD, "U",
  85.   prep_build_action, do_build_action, check_build_action,
  86.   (Unit *unit, Unit *unit2, Unit *newunit),
  87.   "Make progress on the given unit")
  88.  
  89. DEF_ACTION("repair", A_REPAIR, "U",
  90.   prep_repair_action, do_repair_action, check_repair_action,
  91.   (Unit *unit, Unit *unit2, Unit *unit3),
  92.   "Repair a given unit")
  93.  
  94. DEF_ACTION("disband", A_DISBAND, "",
  95.   prep_disband_action, do_disband_action, check_disband_action,
  96.   (Unit *unit, Unit *unit2),
  97.   "Dismantle the given unit completely")
  98.  
  99. DEF_ACTION("transfer-part", A_TRANSFER_PART, "nU",
  100.   prep_transfer_part_action, do_transfer_part_action, check_transfer_part_action,
  101.   (Unit *unit, Unit *unit2, int parts, Unit *unit3),
  102.   "Split a part of self into another unit")
  103.  
  104. DEF_ACTION("change-type", A_CHANGE_TYPE, "u",
  105.   prep_change_type_action, do_change_type_action, check_change_type_action,
  106.   (Unit *unit, Unit *unit2, int u3),
  107.   "Change self to a different unit type")
  108.  
  109. DEF_ACTION("change-side", A_CHANGE_SIDE, "S",
  110.   prep_change_side_action, do_change_side_action, check_change_side_action,
  111.   (Unit *unit, Unit *unit2, Side *side),
  112.   "Change to a given side")
  113.  
  114. DEF_ACTION("alter-terrain", A_ALTER_TERRAIN, "xyt",
  115.   prep_alter_cell_action, do_alter_cell_action, check_alter_cell_action,
  116.   (Unit *unit, Unit *unit2, int x, int y, int t),
  117.   "Alter cell terrain")
  118.  
  119. DEF_ACTION("add-terrain", A_ADD_TERRAIN, "xydt",
  120.   prep_add_terrain_action, do_add_terrain_action, check_add_terrain_action,
  121.   (Unit *unit, Unit *unit2, int x, int y, int dir, int t),
  122.   "Add border/connection/coating terrain")
  123.  
  124. DEF_ACTION("remove-terrain", A_REMOVE_TERRAIN, "xydt",
  125.   prep_remove_terrain_action, do_remove_terrain_action, check_remove_terrain_action,
  126.   (Unit *unit, Unit *unit2, int x, int y, int dir, int t),
  127.   "Remove border/connection/coating terrain")
  128.  
  129.